package chap03;

public class ParameterTest {
    public static void main(String[] args) {
        Student student = new Student("name", "test", 2);
        System.out.println("output  parameter:" + student.getAge() + "   " + student.getGender());
    }
}

class Student {
    private String name;
    private String gender;
    private int age;

    public Student(String n, String g, int a) {
        this.name = n;
        this.gender = g;
        this.age = a;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return this.name;
    }

    public int getAge() {
        return this.age;
    }

    public String getGender() {
        return this.gender;
    }
}
